﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.PlanningManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.PlanningManagement.ProductionOrderVMs
{
    public partial class ProductionOrderBatchVM : BaseBatchVM<ProductionOrder, ProductionOrder_BatchEdit>
    {
        public ProductionOrderBatchVM()
        {
            ListVM = new ProductionOrderListVM();
            LinkedVM = new ProductionOrder_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class ProductionOrder_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._ProductionOrder._Plan")]
        public long? PlanId { get; set; }
        [Display(Name = "_Model._ProductionOrder._ProductId")]
        public long? ProductId { get; set; }
        [Display(Name = "_Model._ProductionOrder._ProductCode")]
        public string ProductCode { get; set; }
        [Display(Name = "_Model._ProductionOrder._ProductName")]
        public string ProductName { get; set; }
        [Display(Name = "_Model._ProductionOrder._Wo")]
        public string Wo { get; set; }
        [Display(Name = "_Model._ProductionOrder._PlanQty")]
        public decimal? PlanQty { get; set; }
        [Display(Name = "_Model._ProductionOrder._OnlineQty")]
        public decimal? OnlineQty { get; set; }
        [Display(Name = "_Model._ProductionOrder._CompletedQty")]
        public decimal? CompletedQty { get; set; }
        [Display(Name = "_Model._ProductionOrder._QualifiedQty")]
        public decimal? QualifiedQty { get; set; }
        [Display(Name = "_Model._ProductionOrder._UnqualifiedQty")]
        public decimal? UnqualifiedQty { get; set; }
        [Display(Name = "_Model._ProductionOrder._ScrapQty")]
        public decimal? ScrapQty { get; set; }
        [Display(Name = "_Model._ProductionOrder._PlanStartTime")]
        public DateTime? PlanStartTime { get; set; }
        [Display(Name = "_Model._ProductionOrder._PlanEndTime")]
        public DateTime? PlanEndTime { get; set; }
        [Display(Name = "_Model._ProductionOrder._ActualStartTime")]
        public DateTime? ActualStartTime { get; set; }
        [Display(Name = "_Model._ProductionOrder._ActualEndTime")]
        public DateTime? ActualEndTime { get; set; }
        [Display(Name = "_Model._ProductionOrder._OrderStatus")]
        public WoStatusEnum? OrderStatus { get; set; }
        [Display(Name = "_Model._ProductionOrder._OrderSource")]
        public WoSourceEnum? OrderSource { get; set; }
        [Display(Name = "_Model._ProductionOrder._Sort")]
        public int? Sort { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}